package com.ruoyi.party.system.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 党员宣传报道登记对象 p_ad
 * 
 * @author 黄宝康
 * @date 2021-04-19
 */
public class Ad extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 发表编号 */
    @Excel(name = "发表编号")
    private Long id;

    /** 党员编号 */
    @Excel(name = "党员编号")
    @NotBlank(message = "党员编号不能为空")
    @Size(min = 0, max = 10, message = "党员编号长度不能超过10个字符")
    private String memberId;

    /** 发表文章主题 */
    @Excel(name = "发表文章主题")
    @NotBlank(message = "发表文章主题不能为空")
    @Size(min = 0, max = 100, message = "发表文章主题长度不能超过100个字符")
    private String subject;

    /** 发表文章级别 */
    @Excel(name = "发表文章级别")
    @NotBlank(message = "发表文章级别不能为空")
    @Size(min = 0, max = 2, message = "发表文章级别长度不能超过2个字符")
    private String paperLevel;

    /** 发表日期 */
    @Excel(name = "发表日期")
    @NotBlank(message = "发表日期不能为空")
    @Size(min = 0, max = 10, message = "发表日期长度不能超过10个字符")
    private String pubdate;

    // 自定义字段，列表显示党员姓名
    private String memberName;
    
    
    
    public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }
    public void setSubject(String subject) 
    {
        this.subject = subject;
    }

    public String getSubject() 
    {
        return subject;
    }
    public void setPaperLevel(String paperLevel) 
    {
        this.paperLevel = paperLevel;
    }

    public String getPaperLevel() 
    {
        return paperLevel;
    }
    public void setPubdate(String pubdate) 
    {
        this.pubdate = pubdate;
    }

    public String getPubdate() 
    {
        return pubdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("subject", getSubject())
            .append("paperLevel", getPaperLevel())
            .append("pubdate", getPubdate())
            .append("memberName", getMemberName())
            .toString();
    }
}
